﻿'use strict';

var app = angular.module("app", ['ngRoute'])
    .config(function ($routeProvider) {
     $routeProvider.when('/profile', {
         templateUrl: '/views/profile.html',
         controller: 'ProfileController'
    });

     $routeProvider.when('/home', {
         templateUrl: '/views/home.html',
         controller: 'HomeController'
     });

     $routeProvider.when('/run', {
         templateUrl: '/views/run.html'         
     });

     $routeProvider.when('/statistics', {
         templateUrl: '/views/statistics.html'
     });

     $routeProvider.when('/', {
         templateUrl: '/views/home.html',
         controller: 'HomeController'
     });
    //$routeProvider.otherwise({redirectTo:'/index.html'});
});
